﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.BUS.MqttBUS
{
    public interface IMqttDevices
    {
        /// <summary>
        /// 开始发布设备状态
        /// </summary>
        string StartAsync(string deviceID);
        /// <summary>
        /// 开始发布设备状态(通过缓存)
        /// </summary>
       /* string StartAsync(string deviceID, string UserName, ElevatorStateBUS bus);*/
        /// <summary>
        /// 取消发布状态
        /// </summary>
        string StopAsync(string deviceID);
        /// <summary>
        /// 根据mqtt心跳取消任务
        /// </summary>
        /// <param name="UserName">用户名</param>
        /// <returns></returns>
        string StopFromUserNameAsync(string deviceID);
    }
}
